package com.green.dao.common.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.green.common.page.Pagination;
import com.green.dao.common.GetValueDao;
import com.green.dao.impl.BaseDaoImpl;

/**
 * @author hxy
 * @date 2012-2-14
 * 
 */
@Repository("getValueDao")
public class GetValueDaoImpl extends BaseDaoImpl implements GetValueDao {

	@SuppressWarnings("rawtypes")
	@Override
	public Pagination<HashMap> getVlaueList(String sql, Pagination<HashMap> page) {		
		Map<String, String> params=new HashMap<String, String>();
		params.put("sql", sql);
		return selectList("com.green.dao.common.GetValueDao.getValues", params, page);
	}
	@Override
	public Pagination<Object> getVlaueListBySqlId(String sqlId, Pagination<Object> page,Map<String, Object> params) {		
		return selectList(sqlId, params, page);
	}
	
	@SuppressWarnings("rawtypes")
	@Override
	public List getListByKey(String sqlId, Map<String, Object> params) {
		return selectList(sqlId,params);
	}
	
	@SuppressWarnings("rawtypes")
	@Override
	public Pagination getListBySqlId(String sqlId,Pagination<HashMap> page,Map<String,Object> paramobj) {
		return selectList(sqlId,paramobj,page);
	}
	
}
